* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(../imgs/imgs1.jpg) no-repeat;
    background-size: 100%;
    transition: 0.5s;
}

body.active {
    background: url(../imgs/imgs2.jpg) no-repeat;
    background-size: 100%;
}

.container {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 20px;
    /* background: #ff0; */
}

.blueBg {
    position: absolute;
    top: 40px;
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 45px rgba(0, 0, 0, 0.15);
    /* 白色透明板子圆角 */
    border-radius: 15px;
}

.blueBg .box {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.blueBg .box h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.blueBg .box button {
    cursor: pointer;
    padding: 10px 20px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 15px;
}

.formBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 45px rgba(0, 0, 0, 0.15);
    transition: 0.5s ease-in-out;
    overflow: hidden;
    border-radius: 15px !important;
}

.formBx.active {
    left: 50%;
}

.formBx .form {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s;
}

.formBx .signinForm {
    transition-delay: 0.25s;
}

.formBx.active .signinForm {
    left: -100%;
    transition-delay: 0s;
}

.formBx .signupForm {
    left: 100%;
    transition-delay: 0s;
}

.formBx.active .signupForm {
    left: 0;
    transition-delay: 0.25s;
}

.formBx .form form {
    width: 100%;
    display: flex;
    margin-top: -132px;
    flex-direction: column;
}

.formBx .form form h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.formBx .form form input {
    width: 82%;
    margin: auto;
    margin-bottom: 20px;
    padding: 10px;
    outline: none;
    font-size: 16px;
    /* border: 1px solid #333; */
    /* 去除选中状态边框*/
    outline-style: none;
    /* 去除未选中状态边框 */
    border: 0px;
    /* 透明背景 */
    background-color: rgba(0, 0, 0, 0);
    border-bottom: 1px solid #AD724E;
    border-radius: 15px;
}

.formBx .form form input:focus {
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(135, 104, 119, .075), 0 0 8px rgba(135, 104, 119, .6);
    box-shadow: inset 0 1px 1px rgba(135, 104, 119, .075), 0 0 8px rgba(135, 104, 119, .6)
}

.formBx .form form input[type="submit"] {
    background-color: #8F6F7E;
    border: none;
    color: #fff;
    max-width: 100px;
    cursor: pointer;
}

.formBx.active .signupForm input[type="submit"] {
    background: #AD724E;
}

.formBx .form form .forgot {
    color: #333;
}

@media(max-width:991px) {
    .container {
        max-width: 400px;
        height: 650px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contianer .blueBg {
        top: 0;
        height: 100%;
    }

    .formBx {
        width: 100%;
        height: 500px;
        top: 0;
        box-shadow: none;
    }

    .blueBg .box {
        position: absolute;
        width: 100%;
        height: 150px;
        bottom: 0;
    }

    .box.signin {
        top: 0;
    }

    .formBx.active {
        left: 0;
        top: 150px;
    }
}